<ion-view class="login-view" hide-nav-bar="true">
    <ion-content>
        <form class="login-wrapper" name="loginForm" ng-submit="signin()" novalidate auto-vertical-align="70">
            <img src="img/signin.png">
            <div class="login-tabs">
                <label ng-class="{'active':data.activeIndex===1}" ng-click="clickTab(1)">账号密码登录</label>
                <label ng-class="{'active':data.activeIndex===2}" ng-click="clickTab(2)">快速登录</label>
            </div>
            <div class="list input-list" ng-show="data.activeIndex===1">
                <label class="item item-input">
                    <img src="img/icon_user.png">
                    <input type="text" placeholder="用户名" ng-model="data.usercode" required>
                </label>
                <label class="item item-input">
                    <img src="img/icon_pw.png">
                    <input type="password" placeholder="密码" ng-model="data.password" required>
                </label>
            </div>
            <div class="login-option clearfix" ng-show="data.activeIndex===1">
                <label class="checkbox-input">
                    <input type="checkbox" class="im-checkbox" ng-model="data.autologin">
                    <span>自动登录</span>
                </label>
                <button class="button" type="submit" ng-disabled="loginForm.$invalid">登录</button>
            </div>
            <div class="scan-tip" ng-show="data.activeIndex===2">请扫描员工卡</div>
        </form>
    </ion-content>
</ion-view>